home *** CD-ROM | disk | FTP | other *** search
- RTCLOCK, version 1.33, by Michael Conley
- Release date: January 20, 1991
-
- UPDATE:
- RTCLOCK version 1.33 now supports direct HEX addressing of non-
- standard COM ports, if required. See SETUP and SERIAL SETUP
- below for details.
-
- PURPOSE:
- RTCLOCK is intended for use on an AT class 286, 386, or 486 machine.
- It will read the real time clock and set the DOS clock from it,
- or read the DOS clock and set the real time clock from it, or it
- will allow the user to set BOTH the real time clock and the DOS
- clock from the keyboard.
-
- If you own the Heathkit "World's Most Accurate Clock" with a
- serial interface, RTCLOCK will allow you to set BOTH your
- real time clock and your DOS clock from WWV, the short-wave
- time data service provided by the U.S. government.
-
- OPERATION:
- Five basic commands are supported, which may be entered either
- on the command line or, if no command is specified, from a menu
- within the program.
-
- [R] reads the real time clock, and sets the DOS clock.
-
- [D] reads the DOS clock, and sets the real time clock.
-
- [S] sets BOTH the real time clock and the DOS clock from
- the keyboard.
-
- [W] sets BOTH the real time clock and the DOS clock from
- serial data transmitted by the Heathkit "World's Most
- Accurate Clock." Be sure to read SETUP for additional
- configuration required for this option.
-
- [V] views the time data from the Heathkit "World's Most
- Accurate Clock" until a key is pressed. It does NOT
- alter either of the system clocks. Be sure to read
- SETUP for additional configuration required for this
- option.
-
- [ESC] exits with no changes.
- SETUP:
- Commands <R>, <D> and <S> require NO configuration.
-
- Commands <W> and <V> require the installation of an RS232
- serial line from the Heathkit "World's Most Accurate Clock"
- to the computer. See the clock manual for wiring information.
- Be sure to set the DIP switch inside the clock for the AUTO
- mode, which provides CONTINUOUS output from the clock. The
- other mode would require manipulating the DTR line to request
- clock data, and is NOT supported by the program. Also be sure
- to select an appropriate baud rate and program the correct year
- using the DIP switches inside the clock.
-
- The program must be informed of the baud rate and the COM port
- in either of two ways:
-
- 1) You may invoke the program and provide the configuration info
- on the command line as follows:
-
- RTCLOCK W COM3 2400 [enter]
-
- Allowable choices here are W or V for the program mode,
- COM1 thru COM4 for the data port, and 300, 600, 1200, 2400,
- 4800, or 9600 for the baud rate. Other choices or missing
- info will produce an error message.
-
- Default COM addresses assumed by the program are:
-
- COM1 = H3F8
- COM2 = H2F8
- COM3 = H3E8 <standards vary ... use custom
- COM 4 = H3E0 <addressing if these don't work
- for your system -- see below.
-
- If your data port has a non-standard address, you may specify
- the hex port address directly by substituting the following
- command structure:
-
- RTCLOCK W H2E0 2400 [enter]
-
- The program would then look for a com port at HEX address 2E0
- and attempt to read the clock from that port.
-
- 2) You may create an ASCII text file (an example is included
- in this distribution) with the port and baud rate on the
- SAME line. Name this file RTCLOCK.CFG and place it in the
- same directory from which the program will be run. An
- example of the file contents would be:
-
- COM3 2400
-
- Note: The parameters must be on the SAME line, and it must
- be the first line of the file.
-
- Please also note that, if you enter the program with NOTHING on
- the command line (i.e., menu mode) you MUST provide RTCLOCK.CFG
- in order to use the W or V options, as these cannot be entered
- from the menu. A sample RTCLOCK.CFG is included with this
- distribution.
-
- SERIAL SETUP:
- This release supports COM ports 1 thru 4 and functions entirely
- without interrupts. This allows you to avoid the common problem
- of "interrupt sharing," where COM1 and COM3 share IRQ4, while
- COM2 and COM4 share IRQ3. Custom addressing is possible by
- specifying the HEX address of your com port instead of the name:
- for example: RTCLOCK W H2E0 2400 would look for the clock on
- port 2E0 hex.
-
- We recommend that you set your serial I/O card for NO interrupts
- for the port selected for use with RTCLOCK to avoid possible con-
- flicts with other serial devices. However, the program will run
- properly even in the event that interrupts are present on the port.
-
- CONCLUSION:
- A brief warning: TEST the clock hookup using a communications
- program, such as Qmodem, to verify that it's hooked up and sending
- data correctly. RTCLOCK will simply TIME OUT if there is no output
- from the clock in the W or V mode.
- If the clock IS connected, but it cannot produce the correct time,
- the program WILL gracefully exit with a message, so it can safely
- be used in a batch file, provided the serial line is present.
-
- PROBLEMS, QUESTIONS, SUGGESTIONS:
- =================================
- RTCLOCK is public domain. I don't seek or accept any registration fees for
- this or any of my other public domain utility programs, including those for
- Wildcat! BBS systems. If you're interested in making a charitable contribu-
- tion to express your appreciation, please read the enclosed file SHARE for
- my thoughts on the subject.
-
- I welcome suggestions, and will try to help (no guarantees) if there are
- problems. You may contact me at The Charlatan's Cabin BBS (213) 654-7337,
- or via CompuServe (70250,220).
-
- ============================================================================
-